package com.ruoyi.DegreeCommit.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.DegreeCommit.mapper.DegreeCommitMapper;
import com.ruoyi.DegreeCommit.domain.DegreeCommit;
import com.ruoyi.DegreeCommit.service.IDegreeCommitService;

/**
 * DegreeCommitService业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-23
 */
@Service
public class DegreeCommitServiceImpl extends ServiceImpl<DegreeCommitMapper,DegreeCommit> implements IDegreeCommitService
{
    @Autowired
    private DegreeCommitMapper degreeCommitMapper;

    /**
     * 查询DegreeCommit
     * 
     * @param id DegreeCommit主键
     * @return DegreeCommit
     */
    @Override
    public DegreeCommit selectDegreeCommitById(Long id)
    {
        return degreeCommitMapper.selectDegreeCommitById(id);
    }

    /**
     * 查询DegreeCommit列表
     * 
     * @param degreeCommit DegreeCommit
     * @return DegreeCommit
     */
    @Override
    public List<DegreeCommit> selectDegreeCommitList(DegreeCommit degreeCommit)
    {
        return degreeCommitMapper.selectDegreeCommitList(degreeCommit);
    }

    /**
     * 新增DegreeCommit
     * 
     * @param degreeCommit DegreeCommit
     * @return 结果
     */
    @Override
    public int insertDegreeCommit(DegreeCommit degreeCommit)
    {
        return degreeCommitMapper.insertDegreeCommit(degreeCommit);
    }

    /**
     * 修改DegreeCommit
     * 
     * @param degreeCommit DegreeCommit
     * @return 结果
     */
    @Override
    public int updateDegreeCommit(DegreeCommit degreeCommit)
    {
        return degreeCommitMapper.updateDegreeCommit(degreeCommit);
    }

    /**
     * 批量删除DegreeCommit
     * 
     * @param ids 需要删除的DegreeCommit主键
     * @return 结果
     */
    @Override
    public int deleteDegreeCommitByIds(Long[] ids)
    {
        return degreeCommitMapper.deleteDegreeCommitByIds(ids);
    }

    /**
     * 删除DegreeCommit信息
     * 
     * @param id DegreeCommit主键
     * @return 结果
     */
    @Override
    public int deleteDegreeCommitById(Long id)
    {
        return degreeCommitMapper.deleteDegreeCommitById(id);
    }
}
